package com.anjiebang.mvc.app.controller;

import com.anjiebang.mvc.base.BaseController;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.UUID;

/**
 * @author Judge0
 * @date 2018/5/2.
 */
@Controller
@RequestMapping(HelloController.LOCALED)
public class HelloController extends BaseController {

    public static final String LOCALED = "";

    /**
     * 首页
     * @return
     */
    @RequestMapping(value = "hello",method = RequestMethod.GET)
    @ResponseBody
    public String hello() {
        return "Hello World";
    }


    public static void main(String[] args) {
        String uuid = UUID.randomUUID().toString().replaceAll("-", "");
        System.out.println(System.currentTimeMillis()/1000);
        if(System.currentTimeMillis()/1000 - 1525329593 > 60){
            System.out.println(1);
        }
    }

}
